home *** CD-ROM | disk | FTP | other *** search
- /* =============
- * PedControl.cc
- * =============
- */
-
- #include "PedestalDebugging.h"
-
- #include <Fonts.h>
- #include <Windows.h>
-
- #include "PedControl.hh"
-
- #include "Ped1AppProcess.hh"
- #include "PedApplication.hh"
- #include "PedView.hh"
-
- PedControl::PedControl(PedView &inSuperView)
- : PedPane(inSuperView), macControl(NULL)
- {
- }
-
- PedControl::~PedControl()
- {
- }
-
- void
- PedControl::Init()
- {
- }
-
- void
- PedControl::Open()
- {
- Rect textRect;
-
- PedPane::Open();
-
- }
-
- void
- PedControl::Close()
- {
-
- PedPane::Close();
- }
-
-
- short
- PedControl::Minimum()
- {
- return macControl ? ::GetControlMinimum(macControl) : 0;
- }
-
- void
- PedControl::SetMinimum(short inMin)
- {
- if (macControl) {
- ::SetControlMinimum(macControl, inMin);
- }
- }
-
- short
- PedControl::Maximum()
- {
- return macControl ? ::GetControlMaximum(macControl) : 0;
- }
-
- void
- PedControl::SetMaximum(short inMax)
- {
- if (macControl) {
- ::SetControlMaximum(macControl, inMax);
- }
- }
-
- short
- PedControl::Value()
- {
- return macControl ? ::GetControlValue(macControl) : 0;
- }
-
- void
- PedControl::SetValue(short inVal)
- {
- if (macControl) {
- ::SetControlValue(macControl, inVal);
- }
- }
-
-
- void
- PedControl::Activate()
- {
- if (macControl) {
- //::ShowControl(macControl);
- }
- }
-
- void
- PedControl::Deactivate()
- {
- if (macControl) {
- //::HideControl(macControl);
- }
- }
-
- void
- PedControl::Resize(short inWidth, short inHeight)
- {
- PedPane::Resize(inWidth, inHeight);
-
- }
-
- void
- PedControl::Draw()
- {
- ::EraseRect(&qd.thePort->portRect);
- }
-
-
- void
- PedControl::DispatchNullEvent(EventRecord &inEvent)
- {
- }
-
- void
- PedControl::DispatchClickEvent(EventRecord &inEvent)
- {
-
- //::SetPort(macWindow);
- ::GlobalToLocal(&inEvent.where);
- }
-